package cn.config;

import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhaojie
 * @Date: Created in 16:38 2018/7/21
 * @Description:
 */
@Configuration
public class Configuration1 {
    /**
     *配置feign的契约
     * @return
     */
    @Bean
    public Contract feignContract(){
        return  new feign.Contract.Default();
    }

    /**
     *设置日志
     * @return
     */
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
